package com.lwd.spring.study.config;

import com.lwd.spring.study.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author: 刘东（挂兰）
 * @Date: 2023/12/12 21:22:19
 * @Description:
 */
@Configuration
@ComponentScan("com.lwd.spring.study")
@PropertySource("classpath:info.properties")
public class CustomerConfig {

    @Bean
    public User getUser() {
        User user = new User();
        user.setPassword("111");
        user.setUsername("111");
        return user;
    }
}
